package com.itheima.day02.Demo03;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> list=new ArrayBlockingQueue<>(1);
        Cooker c=new Cooker(list);
        Foodie f=new Foodie(list);
        c.start();
        f.start();
    }
}
